PATH![]() |
![]() ![]() |
Sets state information for a suspended task.
OSStatus MPSetTaskState (
MPTaskID task,
MPTaskStateKind kind,
void *info);
You can use this function to set register contents or exception information for a particular task. However, some state information, such as the exception information (as specified by kMPTaskState32BitMemoryException ) as well as the MSR, ExceptKind, DSISR, and DAR machine registers (specified under kMPTaskStateMachine) are read-only. Attempting to set the read-only machine registers will do nothing, while attempting to set the exception information will return an error.
The function MPExtractTaskState .